﻿using System.Data;

namespace Core.DataAccess.Model
{
    public interface IDBFactory
    {

        IDbConnection Create(bool isReader = false);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="provider">指定数据库</param>
        /// <param name="isReader">是否只读</param>
        /// <returns></returns>
        IDbConnection Create(string key, bool isReader = false);
        IDbConnection Create(string connectionString, string type);
    }
}
